import { Timeline } from 'antd'
import Case from './Case'

export default function DisputeHistory ({ list }) {

    return (
        <Timeline
            items={(list ?? []).map(({ type, ...rest }) => {
                return {
                    children: (<Case type={type} detail={rest}/>)
                }
            })}
        />
    )
}